package com.yeyuanqi.hottop.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yeyuanqi.hottop.entity.Comment;
import com.yeyuanqi.hottop.vo.PageComment;
import java.util.List;

/**
* @author yeyuanqi
* @description 针对表【t_comment】的数据库操作Service
* @createDate 2022-02-26 20:09:08
*/
public interface CommentService extends IService<Comment> {

    /**
     * 通过博客id和父评论id查找所有子评论 并按照时间倒序排序
     *
     * @return
     */
    public List<PageComment> getParentCommentListByTimeDesc();

    /**
     * 通过博客id和父评论id查找所有子评论
     *
     * @param parentCommentId
     * @return
     */
    public List<PageComment> getCommentByParentId(Long parentCommentId);


}
